"""
   author: 陈亚敏
   data: 2021/11/19  17:27
   project: 1
"""
import random
dict1={}
def create():
    with open('ips.txt','a+') as fp:
        for i in range(120000):
            a = random.randint(0, 255)
            fp.write('172.25.254.%d\n'%a)

with open('ips.txt','r') as fp:
    for j in fp.readlines():
        if j not in dict1:
            dict1[j]=1
        else:
            dict1[j]+=1

a=(sorted(dict1.items(),key=lambda x: x[1]))


for i in range(1,11):
    print(a[-i], "\n")



